package com.apexedu.portal.entity;

import javax.persistence.*;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * Created by janabo on 2014-12-12.
 */
@SuppressWarnings("serial")
@Entity
@Table(name = "APP_RESOURCE_SUBSCRIBE")
public class AppResourceSubscribe implements Serializable{
    private String id;
    private String userid;
    private String resid;
    private String subscribeTime;

    @Id
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Basic
    @Column(name = "USERID")
    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    @Basic
    @Column(name = "RESID")
    public String getResid() {
        return resid;
    }

    public void setResid(String resid) {
        this.resid = resid;
    }

    @Basic
    @Column(name = "SUBSCRIBE_TIME")
    public String getSubscribeTime() {
        return subscribeTime;
    }

    public void setSubscribeTime(String subscribeTime) {
        this.subscribeTime = subscribeTime;
    }

    @Override
    public String toString() {
        return "AppResourceSubscribe{" +
                "id=" + id +
                ", userid='" + userid + '\'' +
                ", resid='" + resid + '\'' +
                ", subscribeTime=" + subscribeTime +
                '}';
    }
}
